#pragma once
#include "Matrix.h"

class DeterminantCalculator
{
private:
	DeterminantCalculator ();

	/**
	* Find a pivot emement in column
	*/
	static size_t findPivotInColumn(size_t startRow, const Matrix& matrix);
	static void settingToZeroColumnElements( size_t startRow, const Matrix& matrix);
	static double determinateOfTriangleMatrix(const Matrix& matrix);
public:
	static double calculate (const Matrix& matrix);
};